# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User as AuthUser

# Create your models here.


class Message(models.Model):
    user = models.ForeignKey(AuthUser, models.CASCADE)
    content = models.TextField()
    pub_date = models.DateTimeField(auto_now_add=True)


class Relationship(models.Model):
    from_user = models.ForeignKey(
        AuthUser, models.CASCADE, related_name='following_list')
    to_user = models.ForeignKey(
        AuthUser, models.CASCADE, related_name='follower_list')
